package zk.weart.core.mybatis;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.models.auth.In;

/**
 * @Author zjk
 * @Description:
 * @Date 2022/5/11 11:23
 **/
public class PageFactory {

    public static IPage getPage(PageParam pageParam){

        return new Page(pageParam.getPageNum(),pageParam.getPageSize());
    }

    public static IPage getPage(Integer pageNum,Integer pageSize){

        return new Page(pageNum,pageSize);
    }

}
